package com.wg.user;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.spring.web.plugins.DefaultConfiguration;

/**
 * @author zf_serveer
 * @CreateTime 2025/1/13 0013
 */
@MapperScan("com.wg.user.mapper")
@EnableFeignClients(value = "com.wg.api.client", defaultConfiguration = DefaultConfiguration.class) //启动OpenFeign
@Slf4j
@SpringBootApplication
@EnableTransactionManagement //开启注解方式的事务管理
public class UserApplication {
    public static void main(String[] args) {
        SpringApplication.run(UserApplication.class, args);
    }
}
